package io.gitee.hefren.hhconfig.server.service;

import io.gitee.hefren.hhconfig.server.beans.Configs;
import org.springframework.web.context.request.async.DeferredResult;

import java.util.List;
import java.util.Map;

public interface HhConfigServerService {


    List<Configs> findConfigsList(String capp, String cenv, String cnamespace);

    List<Configs> updateOrInsertConfigsList(String capp, String cenv, String cnamespace, Map<String, String> kvMap);

    Long updateOrInsertConfigsVersion(String capp, String cenv, String cnamespace, Long cversion);
    Long findConfigsVersion(String capp, String cenv, String cnamespace);

    DeferredResult<Long> deferredResultVersion(String capp, String cenv, String cnamespace);

}
